import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import Message from '@/static/js/message'

const app = createApp(App);

//第三方组件
import Element from '@/static/js/element'
import ElementIcons from '@/static/js/element-icon'
import axios from '@/static/js/axios';
import filter from '@/static/js/filter';
import publics from '@/static/js/public';

//自定义样式
import '@/static/css/fxn.css'
import '@/static/css/common.css'
import '@/static/css/style.css'
import '@/static/css/iconfont.css'
import '@/static/css/element.css'

//全局变量
app.config.globalProperties.$http= axios;
app.config.globalProperties.$msg = Message;
app.config.globalProperties.$filter = filter;
app.config.globalProperties.$public = publics;
app.config.globalProperties.PathUrl = import.meta.env.VITE_BASEURL;

//全局配置
app.use(store)
app.use(router)
app.use(Element)
app.use(ElementIcons)
app.mount('#app')
